<?php defined('BASEPATH') OR exit('No direct script access allowed');
/**
 * @author 		Phil Sturgeon - PyroCMS Development Team
 * @package 	PyroCMS
 * @subpackage 	Users Module
 * @since		v0.1
 *
 */
class User_m extends MY_Model
{
	protected $_table = 'members';	
    
    function check_login($username, $password)
    {        
        $user_info = $this->get_by(array('username' => $username, 'password' => authcode($password,'ENCODE')));
        
        if(empty($user_info))
        {
            return FALSE;
        }
        return TRUE;
    }
}